How can I get my stripe customer ID

93

How can I get my stripe customer ID? -

$customer = $stripe->customers()->create([
       'email' => $_POST['stripeEmail'],
       'source'  => $_POST['stripeToken'],
       'plan' => trim($plan)
    ]);

echo $customer['id'];

Comments

Submit
0 Comments